package org.bluebee.billiardsbar.entity;

public class BallTable {
	private String tableId;
	private String userId;
	private String admId;
	private String roomId;
	public BallTable(String tableId, String userId, String admId, String roomId) {
		super();
		this.tableId = tableId;
		this.userId = userId;
		this.admId = admId;
		this.roomId = roomId;
	}

	public BallTable() {
		super();
	}

	public String getTableId() {
		return tableId;
	}
	public void setTableId(String tableId) {
		this.tableId = tableId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getAdmId() {
		return admId;
	}
	public void setAdmId(String admId) {
		this.admId = admId;
	}
	public String getRoomId() {
		return roomId;
	}
	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
		return result;
	}
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final BallTable other = (BallTable) obj;
		if (tableId == null) {
			if (other.tableId != null)
				return false;
		} else if (!tableId.equals(other.tableId))
			return false;
		return true;
	
	}
	
	public String toString() {
		return "BallTable [tableId=" + tableId + ", userId=" + userId
				+ ", admId=" + admId + ", roomId=" + roomId + "]";
	}
}
